//
//  MNMAppDelegate.m
//  MNM
//
//  Created by Taylor Clifton on 2/5/10.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

#import "MNMAppDelegate.h"
#import "MNMViewController.h"
#import "MNMRegistrationViewController.h"


@implementation MNMAppDelegate

@synthesize window;
@synthesize viewController;

- (void)applicationDidFinishLaunching:(UIApplication *)application {    
    
    // Override point for customization after app launch    
    [window addSubview:viewController.view];
	baseViewController = [[MNMRegistrationViewController alloc] initWithNibName:@"MNMRegistrationViewController" bundle:nil];
    [window makeKeyAndVisible];
}

//test code for navigation controller
-(void)moveToNav:(id)sender
{
	//[[[window subviews] objectAtIndex:0] removeFromSuperview];
	
	navCon = [[UINavigationController alloc] init];
	[navCon pushViewController:baseViewController animated:YES];
	
	
	[window addSubview:navCon.view];
}

-(void)pushView
{
	secondRegVC = [[MNMSecondRegistrationViewController alloc] initWithNibName:@"MNMSecondRegistrationViewController" bundle:nil];
	[navCon pushViewController:secondRegVC animated:YES];
}

-(void)no
{
	//back to login
}

- (void)dealloc {
    [viewController release];
	//baseViewController is part of test code
	[baseViewController release];
    [window release];
    [super dealloc];
}




@end
